#ifndef GOTOXY_H
#define GOTOXY_H

#include <windows.h>

void gotoxy( int x, int y ) //Name of the function, with two arguments.
{ 
    COORD c; //Names an instances of the COORD type (probably a class in windows.h)

    c.X = x; //0,0 is origin, so you have to subtract 1 from x and y.
    c.Y = y; 

    SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), c ) ; //Self-explanitory
}  

#endif